﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using EFCore.Sharding.DataAnnotations;
using EFCore.Sharding;

namespace Treca.PushMessage.Entity
{
    /// <summary>
    /// 消息服务人员OpenId管理
    /// </summary>
    [Table("ms_messageuser")]
    [LogicDelete("IsDelete", "0")]
    public class ms_messageuser:BaseEntity
    {

        /// <summary>
        /// 主键
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 用户Id
        /// </summary>
        public String userId { get; set; }

        /// <summary>
        /// 用户OpenId
        /// </summary>
        public String userOpenId { get; set; }

        /// <summary>
        /// 服务AppId
        /// </summary>
        public String serviceAppId { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public Int32? FsNo { get; set; }=0;

        /// <summary>
        /// 删除标识
        /// </summary>
        public String IsDelete { get; set; }="1";

        /// <summary>
        /// 描述
        /// </summary>
        public String Remark { get; set; }

        /// <summary>
        /// 使用状态
        /// </summary>
        public String StatusFlag { get; set; }

        /// <summary>
        /// 创建日期
        /// </summary>
        public DateTime? CreateDate { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public String CreateOperator { get; set; }

        /// <summary>
        /// 修改日期
        /// </summary>
        public DateTime? ModifyDate { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public String ModifyOperator { get; set; }

    }
}